package com.lipaluma.parser.marshalling;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

public class OneToManyFieldMarshalled {

	private Field field;
	private List<ObjectMarshalled> objectsMarshalled = new ArrayList<ObjectMarshalled>();
	
	public OneToManyFieldMarshalled(Field field) {
		this.field = field;
	}
	
	public void addObjectMarshalled(ObjectMarshalled objectMarshalled) {
		objectsMarshalled.add(objectMarshalled);
	}
	
	public List<ObjectMarshalled> getObjectsValuesMarshalled() {
		return objectsMarshalled;
	}

	public Field getField() {
		return field;
	}
}
